﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace QuickGame
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["nguoidung_quyen"] == null)
            {
                NavigationMenu.Visible = true;
                Menu1.Visible = false;
                Menu2.Visible = false;
            }
            else {
                int i = Convert.ToInt32(Session["nguoidung_quyen"]);
                if ( i == 1)
                {
                    NavigationMenu.Visible = false;
                    Menu1.Visible = true;
                    Menu2.Visible = false;
                }
                else {
                    NavigationMenu.Visible = false;
                    Menu1.Visible = false;
                    Menu2.Visible = true;
                }
            }

        }
    }
}
